diff options
Diffstat (limited to 'packages/enterprise/src/routes/api/[...path].ts')
| -rw-r--r-- | packages/enterprise/src/routes/api/[...path].ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/enterprise/src/routes/api/[...path].ts b/packages/enterprise/src/routes/api/[...path].ts index e77c00de9..f97788bd0 100644 --- a/packages/enterprise/src/routes/api/[...path].ts +++ b/packages/enterprise/src/routes/api/[...path].ts @@ -108,6 +108,7 @@ app validator("param", z.object({ shareID: z.string() })), async (c) => { const { shareID } = c.req.valid("param") + c.header("Cache-Control", "public, max-age=30, s-maxage=300, stale-while-revalidate=86400") return c.json(await Share.data(shareID)) }, ) |
